package com.maggroup.conference_system.entity;

import java.util.HashMap;
import java.util.Map;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;


/**
 * 所有实体的基类
 * @author peng
 *
 */
@MappedSuperclass
public abstract class AbstractEntity extends PersistObject{

	/**
	 * 
	 */
	private static final long serialVersionUID = -948992233533037661L;
	
	@Transient
    Map<String, Object> properties;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	public Map<String, Object> getProperties() {
		if(properties == null)
			this.properties = new HashMap<String, Object>();
		return properties;
	}

	public void setProperties(Map<String, Object> properties) {
		this.properties = properties;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	
	
	

}
